package hcn.cmc.bean.response;

import com.alibaba.fastjson.annotation.JSONField;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "MsgHeader")
@XmlAccessorType(XmlAccessType.FIELD)
public class MsgHeader {
    private String Organization;
    private String Sender;
    private String MsgType;
    private String MsgVersion;
    private String Status;
    private String ErrCode;
    private String Detail;

    @JSONField(name = "Organization")
    public String getOrganization() {
        return Organization;
    }

    public void setOrganization(String organization) {
        Organization = organization;
    }

    @JSONField(name = "Sender")
    public String getSender() {
        return Sender;
    }

    public void setSender(String sender) {
        Sender = sender;
    }

    @JSONField(name = "MsgType")
    public String getMsgType() {
        return MsgType;
    }

    public void setMsgType(String msgType) {
        MsgType = msgType;
    }

    @JSONField(name = "MsgVersion")
    public String getMsgVersion() {
        return MsgVersion;
    }

    public void setMsgVersion(String msgVersion) {
        MsgVersion = msgVersion;
    }
    @JSONField(name = "Status")
    public String getStatus() {
        return Status;
    }

    public void setStatus(String status) {
        Status = status;
    }
    @JSONField(name = "ErrCode")
    public String getErrCode() {
        return ErrCode;
    }

    public void setErrCode(String errCode) {
        ErrCode = errCode;
    }
    @JSONField(name = "Detail")
    public String getDetail() {
        return Detail;
    }

    public void setDetail(String detail) {
        Detail = detail;
    }

    @Override
    public String toString() {
        return "MsgHeader{" +
                "Organization='" + Organization + '\'' +
                ", Sender='" + Sender + '\'' +
                ", MsgType='" + MsgType + '\'' +
                ", MsgVersion='" + MsgVersion + '\'' +
                ", Status='" + Status + '\'' +
                ", ErrCode='" + ErrCode + '\'' +
                ", Detail='" + Detail + '\'' +
                '}';
    }
}